package test;

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Liu Huan
 */

public class Haha {
    @Test
    public void testIsblank(){
        String str1 = null;
        String str2 = "";
        String str3 = "aa";
        System.out.println(StringUtils.isBlank(str1));
        System.out.println(StringUtils.isBlank(str2));
        System.out.println(StringUtils.isBlank(str3));
    
    }
    
    @Test
    public void testNull(){
        List<String> list = new ArrayList<>();
        list.add(null);
        List<String> memberIds = list.parallelStream().filter(member -> member!=null).collect(Collectors.toList());
        System.out.println(memberIds.size());
        System.out.println(CollectionUtils.isEmpty(memberIds));
    }
    
}
